package life.kenny.community.service;

import life.kenny.community.dto.PagenationDto;
import life.kenny.community.dto.QuestionDTO;
import life.kenny.community.model.Question;

import java.util.List;

public interface QuestionService {

    void createOrUpdate(Question question);

    PagenationDto list(Integer page,Integer size,String tag,String search,String sort);

    PagenationDto listByUserId(Integer page, Integer size, Long accountId);

    QuestionDTO getByQuestionId(Long id);

    void incView(Long id);

    List<QuestionDTO> selectRelated(QuestionDTO queryDTO);
}
